package com.scap.dfs.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.scap.dfs.entity.Account;
import com.scap.dfs.service.AccountService;
import com.scap.dfs.util.DataTable;

@Controller
@RequestMapping (value="/account")
public class AccountController implements CRUDInterface{
	
//	@Autowired
//	private AccountService voAccountService;
//	
//	@Autowired
//	private ApplicationContext context;
	
	//DataTable voDataTable = new DataTable();
	
	@Override
	@RequestMapping( value = "/view")
	public ModelAndView view(HttpServletRequest request) {
		return null;
	}

	@Override
	public ModelAndView insert(HttpServletRequest request) {
		return null;
	}

	@Override
	public ModelAndView update(HttpServletRequest request) {
		return null;
	}

	@Override
	public ModelAndView delete(HttpServletRequest request) {
		return null;
	}

	@Override
	@RequestMapping(value = "index.html" ,  method = RequestMethod.GET)
	public ModelAndView index(HttpServletRequest request) {
	//	ModelAndView voModelAndView = new ModelAndView("account/index","account",new Account());
		// voModelAndView.addObject("oLanguage", voDataTable.getDataTableLanguage(context,request));
		return  new ModelAndView("account/index");		
	}
	
	

	@Override
	public ModelAndView search(HttpServletRequest request) {
		
		return null;
	}

	@Override
	public ModelAndView index() {	
		return null;
	}	
	
}
